package service;


import dao.BookMapper;
import dao.HealthMapper;
import pojo.Healths;

import java.util.List;

public class HealthServiceImpl implements HealthService {

//    调用dao层的操作，设置一个set接口，方便Spring管理
    private HealthMapper healthMapper;
    public void setHealthMapper( HealthMapper healthMapper) {
        this.healthMapper = healthMapper;
    }

    public int deleteBookById(String healthId) {
        return healthMapper.deleteBookById(healthId);
    }

    public Healths queryBookById(String healthId) {
        return healthMapper.queryBookById(healthId);
    }

    public List<Healths> queryAllBook() {
        return healthMapper.queryAllBook();
    }
}
